package club.justwill.single.persistence.document;

import club.justwill.single.impl.ToolsImpl;
import org.springframework.data.annotation.Id;

/**
 * Created by xiangnan on 16-1-14.
 */
public class MongoDocument {
    @Id
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isNew() {
        return ToolsImpl.isEmpty(id);
    }
}
